home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / turbovis / dlgds411.zip / DLGHLP.HLP (.txt) < prev    next >
Borland Turbo Vision Help  |  1994-01-11  |  33KB  |  393 lines

  1. Contents 
  2.  Using
  3.  Operating Modes
  4.    Design
  5.    Try
  6.    Ordering
  7.  Designing
  8. Dialogbox
  9.  Using
  10. Toolbox
  11.  Moving
  12. Control
  13.  Resizing
  14. Controls
  15.  Editing
  16. Control
  17.  Copyright
  18. information
  19.  Acknowledgements
  20. This menu item will open the help file and take you to the main table of contents. 
  21. This menu item will open the help file and take you to the last topic viewed. 
  22. Using Help z
  23. Use the F1 key for context sensitive help most anywhere in Dialog Design.  Once in Help, the following keys may be used: 
  24.   Alt-C  Bring up the Help contents
  25.   Alt-B  Go back to the previous viewed Help screen
  26.   F5     Screen zoom (toggle)
  27.   Esc    Exit Help
  28. See  Acknowledgements 
  29. Toolbox 
  30. The toolbox provides a quick method for adding controls to the dialogbox.  If the toolbox isn't visible, toggle it on with Ctrl-F6. The toolbox may be repositioned by dragging its caption bar. 6
  31. To add a control using the toolbox click and release on the appropriate icon with the left button.  The control will pop off the toolbox and follow the mouse.  When you reach the desired location, click once more to drop the control.  At this point, the mouse will be properly positioned to size the control. 
  32. If you pick up a control from the toolbox and then decide not to use it, drop it outside of the dialog or move the mouse off screen. ;
  33. From top to bottom, left to right, the control icons are: 
  34.   TInputLine         TStaticText
  35.   TInputLong         TButton
  36.   TCheckboxes        TListBox
  37.   TRadioButtons      TScrollbar (Vertical)
  38.   TMemo              TScrollbar (Horizontal)
  39. TLabel and TMultiCheckBoxes have no representation in the toolbox. f
  40. Once you've added controls from the toolbox, you'll need to edit them to supply further information. 
  41. Designing a Dialogbox S
  42. While there is no fixed way to design a dialogbox, here's one suggested sequence: V
  43. 1.In design
  44. mode, work with the dialogbox large enough so that you won't be crowded. 
  45. 2.From the Add menu, select a control to add.  This will bring up a dialog where you can enter the necessary information.  Use the online help (F1 key) if you have a question as to what goes in a particular field.  When the OK button is pressed, the control will appear in the lower right corner of the design box.  The control is then positioned by dragging it with the mouse, or by using the arrow keys (Shift+arrow moves a little faster). Work in the upper left corner of the box. !
  46. 3.Continue adding controls as desired.  At any time, controls can be repositioned or sized with the mouse.  If something other than position or size needs changing, select the control and from the Edit menu choose Edit Selected (or use F7).  This will bring up its dialogbox for changes. 
  47. 4.When all the controls have been added and positioned, size the box to fit and move it to the desired location on the desktop.  Be sure and add a title (Dialog Parameters from the Edit menu). 
  48. 5.Enter Try
  49. Mode with the F9 key and test the dialogbox.  Be sure to check how the controls sequence using the Tab key.  Exit Try mode with Esc or click on the close box. 
  50. 6.If the Tab sequence needs changing, use F8 to enter ordering
  51. mode.  With the mouse, click on each control to establish the desired order.   Exit back to design mode with F8. "
  52. Changing the sequence without a mouse is a little more complicated.  Use the Tab key to select (highlight) the next control to be sequenced.  Then press the Enter key to enter the selected control into the sequence.  After all controls have been entered, exit back to design mode with F8. 
  53. Some controls (such as Static Text, and Labels) don't enter into the tab sequence of a dialogbox.  You can order these if it's convenient, but the order won't effect the final results. /
  54. Be sure to recheck the tab order in Try
  55. mode. 
  56. 7.This is a good time to save your work.  Choose Save or Save As from the File menu to create or update a .DLG file.  Any file with the same name will be renamed with a .BKP extension. 
  57. 8.You can preview the source code to be generated by choosing one of the Write Source selections from the Operations menu, and then selecting the Screen option.  The code will appear in a viewer window. 
  58. 9.To create source code for your dialogbox, choose one of the Write
  59. Source selections from the Operations menu and then choose the File option. 
  60. 10.To generate a resource file or add the new dialogbox to an existing resource or EXE file, choose Write
  61. Resource
  62. File from the Operation menu.     
  63. Design Mode 
  64. Dialog Design begins in design mode and this is the mode that you use for all layout work and editing.  In design mode, the dialogbox doesn't look or act quite like it will in the final design.  Here's some of the differences: ^
  65. A 'canvas' background is used to better delineate the actual space occupied by each control. )
  66. Controls are colored red when selected. $
  67. Multiple controls may be selected. B
  68. All controls may be selected even those not normally selectable. 
  69.  Dialog Parameters
  70. Allows entering/changing the title of the dialog box and other dialogbox parameters. 
  71. The Dialog's title is entered here. 
  72. See also: 0
  73.   Entering
  74. Non-Keyboard
  75. Characters
  76. Operator
  77. When Dialog Design writes type 1 code for your dialog, it writes a function named MakeDialog by default.  You can specify another name here. h
  78. If the function will be used as a method, you can precede the function name with the object's name as: C
  79.     TMyProgram.MakeFileDialog   or
  80.     TMyProgram::makeFileDialog
  81. When Dialog Design writes code for a dialogbox, it defines a record/struct to be used with the dialogbox's SetData and GetData methods.  By default, the name 'DataRec' is used. M
  82. To eliminate name conflicts, you may want to change the name in this field. <
  83. If you don't desire a data record, leave this field blank. 
  84. By default, this field contains PDialog/TDialog.  If this dialog is to be a descendent of TDialog (as it would be if you're using type 2 code generation), enter the new pointer name/class name here. 
  85. Enter any reminder notes here (up to 512 characters). 
  86. Enter the key string that will identify this dialog in a resource file. Note that this string is case sensitive.  Spaces are not permitted. 
  87. Choose the palette for the dialog here. 
  88. The standard flag settings for a dialog are wfMove and wfClose but you can change these for special cases. 
  89.  Edit Selected
  90. Allows editing the selected control. 
  91.  Delete Selected
  92. Deletes the selected control or controls. 
  93. Duplicates the selected control.  The new control will appear directly below the copied control. S
  94. To duplicate a control using the mouse, hold the Ctrl key down and left click it. 
  95.  Select All  (F4)
  96. Selects all the controls. 
  97. To select most of the controls in the dialog, it's usually easiest to select them all and then, holding down the shift key, unselect those not wanted by clicking on them with the mouse. 
  98. See also Selecting
  99. Controls. 
  100.  Selecting Controls
  101. A single control may be selected with the mouse by clicking on it.  To select a control with the keyboard, use Tab or ShiftTab until it is highlighted. 
  102. To select multiple controls, select the first, then hold down the shift key while clicking on the others.  Note that, in this mode, clicking toggles selection on and off so it's possible to deselect as well as select. +
  103. You can also select a block of controls by using the mouse to define an enclosing rectangle.  Position the mouse to one corner of the desired rectangle (the start position must not be on a control).  Hold the left button down and drag to the opposite corner of the rectangle before releasing the button. During the drag operation, a shaded area will show the rectangle.  Only those controls completely enclosed by the rectangle will be selected. If the shift key is held down during this operation, any previously selected controls will remain selected. K
  104. To select all controls, use F4 or choose 'Select All' from the Edit menu. 
  105. Resizing a Control 
  106. To resize a control, first select it and then click and drag on its lower right corner.  Note that some controls only size in one dimension and all have a minimum size. i
  107. You can also change a control's size by changing the width and height fields in the control's edit
  108. box. 
  109. Editing a Control 
  110. To edit a co